package com.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("公告")
public class Notice {
    private Integer id;
    private String title;
    @DateTimeFormat(fallbackPatterns = "YYYY-MM-DD hh:mm:ss")
    private Date publishTime;
    private String content;

    Notice(){
        id=0;
    }
}
